package trading.algo.initTask;

import java.util.TimerTask;

import trading.bo.IBAccessorBO;

public class MarketStatusTask extends TimerTask {
	private String ticker;
	private IBAccessorBO ibAccessorBO;

	public MarketStatusTask(String ticker, IBAccessorBO ibAccessorBO) {
		this.ticker = ticker;
		this.ibAccessorBO = ibAccessorBO;
	}
	
	@Override
	public void run() {
		this.ibAccessorBO.reqMarketStatus(ticker);
	}

	public static int secondsNeeded() {
	    return 10;
	}
}
